package com.xunyji.xunyjitest.demo.baidutrans;

import lombok.extern.slf4j.Slf4j;

/**
 * @author AltEnter
 * @create 2019-01-10 21:06
 * @desc 百度翻译官方demo测试类
 **/
@Slf4j
public class BaiduTransDemoTest {
    public static void main(String[] args) {
        TransApi transApi = new TransApi("20190109000255665", "iNPVhM9qtM3Kb0ZTesI9");
        String transResult = transApi.getTransResult("我来自重庆", "auto", "en");
        log.info("百度翻译后的响应为：" + transResult);
    }
}

